﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XSTDZ.ERP.Core.Extentions;
namespace XSTDZ.ERP.Domain.Models
{
    /// <summary>
    /// 用户
    /// </summary>
   public partial class Operation
    {
       public Operation()
       {
           this.ChildrenOperations = new HashSet<Operation>();
          // this.Permissions = new HashSet<Permission>(); 
       }
       public Operation InitOperation()
       {
           if (Guid.Equals(this.ParentID, Guid.Empty))
           {
               this.ParentID = this.Id;
           }
           if (string.IsNullOrEmpty(this.Desc))
           {
               this.Desc = this.OperationName;
           }
           return this;
       }
      
  

    }
}
